package com.definity.toolkit.web.taglib;

import javax.servlet.jsp.JspException;

import com.definity.toolkit.i18n.Config;

public class ConfigTag extends BaseTag {

	private static final long serialVersionUID = 4265997676005763397L;

	private String name;
	
	public ConfigTag() {

	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public int doEndTag() throws JspException {
		if (name != null)
			write(Config.getProperty(name));
		
		return super.doEndTag();
	}
	
}
